-include ../Makefile.options

.PHONY: modules gui

all: modules gui
	mv gui/gui ./$(EXEC)

libchess:	modules


modules:
		cd $(MODULE_DIR) && make && mv $(MODULE_LIB) .. && cd ..

cleanmodules:
		cd $(MODULE_DIR) && make clean
		rm -Rf $(FILES_TO_CLEAN)

gui:
		cd gui && qmake && make

cleangui:
		cd gui && make clean

clean: cleanmodules cleangui
		rm -Rf $(FILES_TO_DISTCLEAN)
